#include <stdio.h>
#include "log.h"
#include "defaultrunnable.h"

using namespace sys;
using namespace unifysys;
LOG_CLASSNME(Main);

class ABC : public CDefaultRunnable
{
public:
	ABC(int i):CDefaultRunnable(i){}
	virtual void run(CThread* thread, void* arg)
	{
		LOG_INFO("begin in main.");
	}
};

int main(int argc, char* argv[])
{
    
    if (!sys::Logger::getInstance()->initLogger("../Log/log.log", sys::DEBUG))
    {
    		printf("init log error.\n");
    		return -1;
    }
    //printf("hello world.\n");

    LOG_INFO("begin in main.");

	ABC abc(2);
    abc.start();
    sleep(10);
    abc.stop();
    return 0;
}
